/*
 * Systemprogrammierung
 * Multiplayer-Quiz
 *
 * Server
 * 
 * user.h: Header für die User-Verwaltung
 */

#ifndef USER_H
#define USER_H

typedef struct player{
	int id;
	char name[32];
	int sockDesc;
}PLAYER;

void init();
int addPlayer(char*, int, int);
int removePlayer(int);
void sendPlayerList();
PLAYER getUser(int);
void SendCatalogChange();
int create_user_mutex();
void user_mutex_lock();
void user_mutex_unlock();
void SendToAll(PACKET);
int UserCount();

#endif
